home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
qbbs
/
qbbs276s.zip
/
RICK-L.ZIP
/
NODE1.ZIP
/
Q1.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-16
|
6KB
|
288 lines
SET PCTOOLS=
SET ZIPCOMNT=C:\APND\COMMENT.TXT
SET ZIPTIME=ARCHIVE
rem echo off
d:
cd\qnode1
XU PORT:1:ON
AT COM2:H1
WAIT 1
AT COM2:M0
wait 5
del \dbridge.rs?
d:
cd\dbridge
break on
rem > D:\QNODE1\LOCAL.!!!
REM -------------------START UP DBRIDGE------------------------------
:LOOP
ECHO The label is LOOP
call chkfiles
c:
cd\utils
dbqueue
CD\
d:
cd\dbridge
staroute
CD\
:next2
D:
CD\QNODE1
IF EXIST LOCAL.!!! GOTO DB
ECHO Comments Finished
:DB
ECHO The label is DB
subst m: /d
if exist d:\acfiles\u_pack\*.* del d:\acfiles\u_pack\zip.zip
CD\DBRIDGE
echo Loading D'Bridge
del d:\down!!!!.!!!
rem > d:\dbridge.!!!
SET GED=D:\DBRIDGE\GOLDED
DB
IF ERRORLEVEL 254 GOTO LOOP
IF ERRORLEVEL 192 IF NOT ERRORLEVEL 193 GOTO 19200
IF ERRORLEVEL 144 IF NOT ERRORLEVEL 145 GOTO 19200
IF ERRORLEVEL 96 IF NOT ERRORLEVEL 97 GOTO 9600
IF ERRORLEVEL 70 IF NOT ERRORLEVEL 71 GOTO LOOP
IF ERRORLEVEL 65 IF NOT ERRORLEVEL 66 GOTO MAINTAIN
IF ERRORLEVEL 50 IF NOT ERRORLEVEL 51 GOTO FILEBASE
IF ERRORLEVEL 40 IF NOT ERRORLEVEL 41 GOTO LOCAL
IF ERRORLEVEL 24 IF NOT ERRORLEVEL 25 GOTO 2400
IF ERRORLEVEL 12 IF NOT ERRORLEVEL 13 GOTO 1200
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 GOTO 300
IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 GOTO HANGUP
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 GOTO END
echo waiting for 5 seconds
wait 5
GOTO LOOP
rem -------------------------------logons-------------------------------
:LOCAL
echo The label is LOCAL
echo The errorlevel is 40
ECHO > D:\DBRIDGE\DBRIDGE.RSN
ECHO > D:\DBRIDGE\DBRIDGE.RSE
d:
CD\QNODE1
rem > local.!!!
echo y | del \qmx\*.*
del d:\dbridge.!!!
rem > d:\node1.!!!
set tcnode=1
set toped=d:\quick
set DSZPORT=2
set DSZLOG=D:\QNODE1\DSZ.LOG
SET SWR=D:\QUICK
SET GED=
SET QUICK=D:\QUICK
QUICKBBS -B0 -T*T -E0 -N1
DEL USERS.ASW
GOTO AFTERQUICK
:19200
ECHO The label is 19200
echo The errorlevel is 192
xu capture:on Port:1:on lock:1:19200
d:
CD\QNODE1
echo y | del \qmx\*.*
ECHO *B
del local.!!!
del d:\dbridge.!!!
rem > d:\node1.!!!
set tcnode=1
set toped=d:\quick
set DSZPORT=2
set DSZLOG=D:\QNODE1\DSZ.LOG
SET SWR=D:\QUICK
SET GED=
SET QUICK=D:\QUICK
QUICKBBS -B19200 -T*T -E0 -N1
GOTO AFTERQUICK
:9600
ECHO The label is 9600
echo The errorlevel is 96
xu capture:on Port:1:on lock:1:19200
d:
CD\QNODE1
echo y | del \qmx\*.*
del local.!!!
del d:\dbridge.!!!
rem > d:\node1.!!!
QUICKBBS -B9600 -T*T -E0 -N1
set tcnode=1
set toped=d:\quick
set DSZPORT=2
set DSZLOG=D:\QNODE1\DSZ.LOG
SET SWR=D:\QUICK
SET GED=
SET QUICK=D:\QUICK
GOTO AFTERQUICK
:2400
ECHO The label is 2400
ECHO The errorlevel is 24
xu capture:on Port:1:on lock:1:19200
d:
CD\QNODE1
echo y | del \qmx\*.*
del local.!!!
del d:\dbridge.!!!
rem > d:\node1.!!!
set tcnode=1
set toped=d:\quick
set DSZPORT=2
set DSZLOG=D:\QNODE1\DSZ.LOG
SET SWR=D:\QUICK
SET GED=
SET QUICK=D:\QUICK
QUICKBBS -B2400 -T*T -E0
GOTO AFTERQUICK
:1200
ECHO The label is 1200
echo The errorlevel is 12
xu capture:on Port:1:on lock:1:19200
d:
CD\QNODE1
echo y | del \qmx\*.*
del local.!!!
del d:\dbridge.!!!
rem > d:\node1.!!!
set tcnode=1
set toped=d:\quick
set DSZPORT=2
set DSZLOG=D:\QNODE1\DSZ.LOG
SET SWR=D:\QUICK
SET GED=
SET QUICK=D:\QUICK
QUICKBBS -B1200 -T*T -E0 -N1
GOTO AFTERQUICK
:300
ECHO The label is 300
echo The errorlevel is 3
xu capture:on Port:1:on lock:1:19200
d:
CD\QNODE1
echo y | del \qmx\*.*
del local.!!!
del d:\dbridge.!!!
rem > d:\node1.!!!
set tcnode=1
set toped=d:\quick
set DSZPORT=2
set DSZLOG=D:\QNODE1\DSZ.LOG
SET SWR=D:\QUICK
SET GED=
SET QUICK=D:\QUICK
QUICKBBS -B300 -T*T -E0 -N1
GOTO AFTERQUICK
:RESTART
ECHO The label is RESTART
d:
CD\QNODE1
QUICKBBS -R -E0
GOTO AFTERQUICK
:AFTERQUICK
ECHO The label is AFTERQUICK
d:
cd\qnode1
logger qups.log qdown.log touch
rem IF EXIST SYSTEM.LOG COUNT22
IF ERRORLEVEL 5 IF NOT ERRORLEVEL 6 GOTO MAILSCAN
IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 GOTO ECHOSCAN
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 GOTO NETSCAN
del d:\node1.!!!
set tcnode=
set toped=
set DSZPORT=
set DSZLOG=
SET SWR=
SET GED=d:\dbridge\golded
SET QUICK=
echo on
cd\qnode1
rem echo off
if exist d:\QNODE1\local.!!! goto loop
goto raquser
:MAILSCAN
ECHO The label is MAILSCAN
mailscan
REM > D:\DBRIDGE\DBRIDGE.RSE
REM > D:\DBRIDGE\DBRIDGE.RSN
if not exist d:\QNODE1\local.!!! GOTO RAQUSER
GOTO LOOP
:ECHOSCAN
ECHO The label is ECHOSCAN
REM > D:\DBRIDGE\DBRIDGE.RSE
if not exist D:\QNODE1\LOCAL.!!! GOTO RAQUSER
GOTO LOOP
:NETSCAN
ECHO The label is NETSCAN
mailscan
REM > D:\DBRIDGE\DBRIDGE.RSN
if not exist D:\QNODE1\LOCAL.!!! GOTO RAQUSER
GOTO LOOP
:RAQUSER
CD\QUICK
rem pkzip -u -o -ex -! c:\mscomm\cabbslst d:\quick\bbsbase\bbs.lst
GOTO LOOP
rem ------------------------drops from D'Bridge-----------------------
:FILEBASE
IF NOT EXIST D:\DBRIDGE\FILEBASE.DFB GOTO LOOP
D:
CD\DBRIDGE
PKZIP -U FILEBASE \DBRIDGE\DFB\*.DFB
DEL \DBRIDGE\DFB\*.DFB
PKUNZIP -N FILEBASE \DBRIDGE\DFB
DB FILEBASE COMPILE
DEL FILEBASE.DFB
DEL \DBRIDGE\DFB\*.DFB
GOTO LOOP
:MAINTAIN
ECHO The label is MAINTAIN
echo The errorlevel is 65
datenumb if exist \dbridge\@@##&&&&.txt goto loop
datenumb copy \dbridge\dbmail.res \dbridge\@@##&&&&.txt
datenumb -1 del \dbridge\@@##&&&&.txt
call maintain
GOTO LOOP
rem ------------------------------------end---------------------------
:hangup
X00
XU dtr:1:off
:END
ECHO The label is END
echo The errorlevel is 0
set db-data=
set toped=
set diskstats=
set DSZPORT=
set DSZLOG=
CD\QUICK
del d:\node1.!!!
del d:\dbridge.!!!
rem > d:\down!!!!.!!!
exit